package com.bifang.common.constant;
/**
 * 缓存常量
 *
 * @author chenzh
 * @date: 2018/08/16
 */
public class CacheConst {
    public static final String APP_NAME = "qj:";
    /** token 信息 */
    public static final String ACCESS_TOKEN = "accessToken";
    /** token 信息 */
    public static final String REFRESH_TOKEN = "refreshToken";
    /** 临时访问令牌 */
    public static final String temporary_token = APP_NAME + "temporaryToken";
    /** 公共页面 */
    public static final String PUBLIC_ROUTER_PRIVILEGE = APP_NAME + "public:router";
    /** 通过功能编号获取功能信息 */
    public static final String FUNCTION_BY_CODE = APP_NAME + "function:code";
    /** 用户对应最新token信息 */
    public static final String USER_LOGIN_TOKEN = APP_NAME + "userLogin:token";
    /** 权限信息 路由 */
    public static final String SYSTEM_ROUTER_PRIVILEGE_ID = APP_NAME + "privilege:router:id";
    /** 权限信息 方法 */
    public static final String SYSTEM_FUNCTION_PRIVILEGE_API = APP_NAME + "privilege:function:api";
    /** 系统参数信息 */
    public static final String SYSTEM_PARAMS = APP_NAME + "systemParams:";
    /** 图片验证码 */
    public static final String LOGIN_IMG_CODE = APP_NAME + "login:imgCode:";
    /** email验证码 */
    public static final String LOGIN_EMAIL_CODE = APP_NAME + "login:emailCode:";
    /** 需校验图片验证码 人员 */
    public static final String CHECK_LOGIN_IMG_CODE_USER = APP_NAME + "check:login:imgCode:user:";
    /** 短信验证码 */
    public static final String LOGIN_SHORT_MSG_CODE = APP_NAME + "login:shortMsgCode:";
    /** 人员短信验证码发送次数 */
    public static final String LOGIN_SHORT_MSG_CODE_SEND_CNT =
            APP_NAME + "login:shortMsgCode:sendCnt:";
    /** 人员绑定银行卡短信验证码发送次数 */
    public static final String BANK_SHORT_MSG_CODE_SEND_CNT =
            APP_NAME + "bank:shortMsgCode:sendCnt:";
    /** 人员10分钟登入次数 */
    public static final String LOGIN_CNT_USER = APP_NAME + "login:cnt:";
    /** 10分钟登入次数过多锁定人员 */
    public static final String LOGIN_USER_CLOCK_MAX_CNT = APP_NAME + "login:user:clock:max:cnt:";
    /** 短信发送次数过多锁定人员 */
    public static final String SYS_CLOCK_SHORT_MESSAGE = APP_NAME + "clock:short:message:";
    /** 数据字典信息 */
    public static final String SYS_DICT_VALUE = APP_NAME + "sysDict:value";
    /** 数据字典通用树 */
    public static final String SYS_ALL_DICT_COMMON_TREE = APP_NAME + "tree:dict:common:all";

    public static final String SYS_ALL_AREA_TREE = APP_NAME + "tree:area:all";
    public static final String SYS_ALL_ICON_TREE = APP_NAME + "tree:icon:all";
    public static final String SYS_ALL_ORG_TYPE_TREE = APP_NAME + "tree:orgType:all";

    public static final String SYS_DICT_ORG_NAME_ID = "qj:sysDict:orgNameById";
    public static final String SYS_DICT_ORG_NAME_CODE = "qj:sysDict:orgNameByCode";
    public static final String SYS_DICT_ORG_ID_CODE = "qj:sysDict:orgIdByCode";
    public static final String SYS_DICT_ORG_CODE_ID = "qj:sysDict:orgCodeById";
    public static final String SYS_ALL_ORG_TREE = APP_NAME + "tree:org:all";
    public static final String SYS_ALL_USER_DICT = APP_NAME + "sysDict:user:all";
    public static final String SYS_ALL_USER_DICT_ORGID = APP_NAME + "sysDict:user:orgId";
    public static final String SYS_ALL_USER_DICT_ROLEID = APP_NAME + "sysDict:user:roleId";
    public static final String SYS_ALL_USER_DICT_ORG = APP_NAME + "sysDict:user:org";
    public static final String SYS_ORG_TREE_BY_TYPE = APP_NAME + "tree:org:orgType";
    public static final String SYS_ALL_ORG_TREE_CODE = APP_NAME + "tree:org:code:all";

    // 人社二维码
    public static final String SYS_QRCODE_RS = "qj:app:qrcode:rs:";
    // 根据信息查询二维码编号
    public static final String SYS_QRCODE_GET_CODE = "qj:app:qrcode:getCode:";

    /** APP菜单信息 */
    public static final String APP_MENU = APP_NAME + "appMenu:value";

    public static final String SYS_FUNCTION_FUNCID = APP_NAME + "function:funcId";
    public static final String SYS_ALL_FUNCTION_TREE = APP_NAME + "tree:function:all";

    public static final String SYS_USER_ID = APP_NAME + "user:userId";
    public static final String SYS_ROLE_ID = APP_NAME + "role:roleId";
}
